package com.atguigu.mycloud.service;

import com.atguigu.mycloud.Enum.ReturnMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 任浩
 * @version 1.0
 */

@FeignClient(value = "nacos-payment-provider",fallback = PayFeignSentinelApiFallBack.class)
public interface PayFeignSentinelApi {
    @GetMapping("/pay/nacos/get/{orderNo}")
    public ReturnMessage getPayByOrderNo(@PathVariable("orderNo") String orderNo);
}
